import 'package:flutter/cupertino.dart';

class CustomNavigatorObserver extends NavigatorObserver {
  static CustomNavigatorObserver _instance = CustomNavigatorObserver._();

  CustomNavigatorObserver._();

  static CustomNavigatorObserver getInstance() {
    return _instance;
  }

  static BuildContext getContext() {
    return getInstance().navigator!.context;
  }
}
